<?php

$res=array(0,1,2);
list($one,$two,$tree)=$res;
var_dump($tree);
//结果为int(2)
echo "</br>";

list($one)=$res;
var_dump($one);
//int(0)
echo "</br>";


$array2=array(
    'ret' =>' 1',
    'message' => '操作成功！',
    'code' =>' 200',
    'total' => '143',
    'data' =>array()
);
list($ret3)=$array2;
var_dump($ret3)
//NULL   //对于这种键值对的使用list不能获取到






?>